<?php
/*
Template Name: Home Page
 */
?>

<?php get_header(); ?>

<div id="content" class="page-block">

	<?php get_sidebar(); ?>

	<div id="wide">

		<div id="latest_news">

			<?php if(!is_ie6()): ?>
			<ul id="ticker">

				<?php query_posts("category_name=news&orderby=date&order=DESC&showposts=5"); ?>

				<?php while (have_posts()) : the_post(); ?>

					<?php
					//
					//	strip tags etc out of the post content
					//

						$excerpt = preg_replace("/\[.*\]/U", " ", $post->post_content);
						$excerpt = strip_tags($excerpt);
						$excerpt = substr($excerpt, 0, 100)."...";
					?>

					<li><b>LATEST:</b>
						<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); echo(" - $excerpt"); ?></a>
					</li>

				<?php endwhile; ?>

			</ul>
			<?php endif; ?>

		</div><!-- close #latest_news -->

		<div id="homepage">

			<div class="item">
				<a href="<?php echo(get_permalink(649)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/worship.jpg" alt="Worship" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(649)); ?>">Worship</a></div>
				<div class="desc">We are an evangelical and charismatic church worshipping God in a diverse range of services each week.</div>
			</div>
<!--
			<div class="item">
				<a href="<?php echo(get_permalink(82)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/youth.jpg" alt="youth" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(82)); ?>">Church Life</a></div>
				<div class="desc">All Saints doesn't just do stuff on Sundays!  We have activities for
				<a href="<?php echo(get_permalink(563)); ?>">families</a>, <a href="<?php echo(get_permalink(492)); ?>">children</a>,
				<a href="<?php echo(get_permalink(109)); ?>">young people</a> and <a href="<?php echo(get_permalink(121)); ?>">adults</a>.</div>
			</div>
 -->
			<div class="item">
				<a href="<?php echo(get_permalink(1134)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/path.jpg" alt="path" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(1134)); ?>">Explore</a></div>
				<div class="desc">Are you wanting to explore your faith more deeply? Are there questions you have been wanting to ask?</div>
			</div>

			<div class="item">
				<a href="<?php echo(get_permalink(2)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/churchfront_home.jpg" alt="church front" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(2)); ?>">About Us</a></div>
				<div class="desc">All Saints' Church exists to worship God, make disciples, share the good news about Jesus, and care for those in need.</div>
			</div>

			<div class="item">
				<a href="<?php echo(get_permalink(12)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/common_worship.jpg" alt="Common Worship" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(2)); ?>">Enquiries</a></div>
				<div class="desc">As part of the Church of England, we provide
				<a href="<?php echo(get_permalink(995)); ?>">baptisms</a>,
				<a href="<?php echo(get_permalink(997)); ?>">weddings</a>
				and <a href="<?php echo(get_permalink(1000)); ?>">funerals</a> for our local community.</div>
			</div>

			<div class="item">
				<a href="<?php echo(get_permalink(153)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/centre.jpg" alt="centre" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(153)); ?>">All Saints' Centre</a></div>
				<div class="desc">Our church centre is an ideal venue for wedding receptions, meetings, conferences, dances and parties.</div>
			</div>
<!--
			<div class="item">
				<a href="<?php echo(get_permalink(103)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/alpha-logo-small.png" alt="alpha" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(103)); ?>">Alpha</a></div>
				<div class="desc">The millions of people who have done Alpha will tell you it's a great introduction to the Christian faith.</div>
			</div>
 -->
 <div class="item">
				<a href="<?php echo(get_permalink(1583)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/choose.jpg" alt="choose" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(1583)); ?>">Choose Life</a></div>
				<div class="desc">Details of our growing youth work ministry and the various activities you can join in with.</div>
			</div>
 <!--
 <div class="item">
				<a href="<?php echo(get_permalink(1388)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/notlet.jpg" alt="jobs" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(1388)); ?>">Flat Rentals</a></div>
				<div class="desc">Click here for information about church house flat rentals.</div>
			</div>			
  -->
 <!--
			<div class="item">
				<a href="<?php echo(get_permalink(934)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/nativity-bus-shelter.jpg" alt="chrstmas" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(934)); ?>">Christmas</a></div>
				<div class="desc">Here at All Saints' Church we would like to welcome you to our Christmas services this month.</div>
			</div>
 -->
 <!--
 			<div class="item">
				<a href="<?php echo(get_permalink(1060)); ?>">
					<img src="<?php bloginfo("template_url"); ?>/images/launch.jpg" alt="launch" />
				</a>
				<div class="title"><a href="<?php echo(get_permalink(1060)); ?>">Launch</a></div>
				<div class="desc">Launch is a discipleship and ministry gap-year scheme, based at All Saints' but involving the whole area.</div>
			</div>
 -->		

			<div id="hope08">
				<p>All Saints' Church exists to: Worship God, Make disciples, Share the good news of Jesus, and Care for those in need.</p>
<!--				
				<a href="http://www.hope08northeast.org.uk/" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/hope08.png" alt="hope08"/></a><br/>
 -->				
			</div>

		</div> <!-- close #homepage -->

	</div> <!-- close #wide -->

</div> <!-- close #content -->

<?php get_footer(); ?>